import sbt._
import Keys._

import Dependencies._

import sbtassembly.Plugin._
import AssemblyKeys._

object SparkAppBuild extends Build {

  val projSettings = assemblySettings ++ Seq(
    name := "spark-app",
    scalaVersion := "2.10.3",
    compileOrder := CompileOrder.Mixed,
    jarName in assembly := "spark-app.jar",
    mainClass in assembly := Some("vj.spark.SparkApp"),
    libraryDependencies ++= Seq(Kafka, SparkCore, SparkStreaming, SparkKafkaStreaming)
  ) ++ net.virtualvoid.sbt.graph.Plugin.graphSettings

  lazy val project: Project = Project(
    id = "spark-app",
    base = file("."),
    settings = Project.defaultSettings ++ projSettings 
  )
}
